package cn.lan.scau_hotel_service.repository;

import cn.lan.scau_hotel_service.entity.Hotel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface HotelRepository extends JpaRepository<Hotel,Integer> {

    Hotel getHotelById(int id);

    Hotel getHotelByLocaName(String name);

    int deleteHotelById(int id);

    List<Hotel> findAll();

}
